<?xml version="1.0" encoding="utf-8" ?> 
<Mapping  xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	
	<Entity type="Address" table="Addresses">
		<Id field="AddressID">
			<Generator name="native">
				<Property name="dbType">Int32</Property>
			</Generator>
		</Id>
		<Attribute name="Street" type="System.String" field="Street" db-type="String" />
		<Attribute name="PostalCode" type="System.Int32" field="PostalCode" db-type="Int32" />
		<Attribute name="City" type="System.String" field="City" db-type="String" />
	</Entity>
	
	<Entity type="Person" table="Persons">
		<Id field="PersonID">
			<Generator name="native">
				<Property name="dbType">Int32</Property>
			</Generator>
		</Id>
		<Attribute name="Name" type="System.String" field="Name" db-type="String" />
		<Attribute name="FirstName" type="System.String" field="FirstName" db-type="String" />
		<Reference name="Addresses" entityChild="Address">
			<Rule parentField="PersonID" childTable="PersonsAddresses" childField="FK_PersonID" />
			<Rule parentField="FK_AddressID" childTable="Addresses" childField="AddressID" />
		</Reference>
	</Entity>
	
</Mapping>
